package ooExercise.day04;

public class Cat extends Animal implements Swim {
    public Cat(String name, int age, String color, String food) {
        super(name, age, color, food);
    }

    void eat() {
        System.out.println(color + "颜色的," + age + "岁的，名叫" + name + "的猫猫，正在吃" + food + ",吃完后又在刨猫砂");

    }
    void Catchmouse() {
        System.out.println("有一只" + color + "颜色的," + age + ",岁的，名字叫" + name + "的猫猫在抓老鼠");
    }
    public void swim(){
        System.out.println("有一只" + color + "颜色的," + age + ",岁的，名字叫" + name + "的在游泳");
    }

}
